//
//  NSString+Helper.h
//  ARErp
//
//  Created by ZRAR on 14/11/6.
//  Copyright (c) 2014年 ZRAR. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Helper)

//- (NSString *)trimString;
//- (BOOL)isEmptyString;
//空字符串处理
+ (NSString *)handleStrIsEmptyFrom:(NSString *)str;
//判断字符串为空
+ (BOOL) isBlankString:(NSString *)string;
//转换手机号为加星号
-(NSString *)phoneNumToAsterisk;
//转换身份证号为加星号
-(NSString*)idCardToAsterisk;

+(NSString *)timeFormatted:(float)totalSeconds;
//通过秒得到时间

@property (readonly) NSString *k_MD5String;
+ (NSString*)dictionaryToJson:(id)dHelperic;

+ (NSString *)MD5ForUpper32Bate:(NSString *)str;
//图片转64base字符串
+ (NSString *)imageToString:(UIImage *)image;
//全为数字
+ (BOOL)inputShouldNumber:(NSString *)inputString;
// 全为字母
+ (BOOL)inputShouldLetter:(NSString *)inputString;
//全为汉字
+ (BOOL)inputShouldChinese:(NSString *)inputString;
+(NSString *)getCurrentTimes;
//获取星期几
+(NSString *)getDayString:(NSString *)inputString;

#pragma mark 判断身份证合法性
+ (BOOL)judgeIdentityCardValueUseString:(NSString *)str;
@end
